package com.heima.model.article.dtos;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@ApiModel(description = "文章收藏行为数据传输对象，包含文章ID、操作类型、发布时间和类型。")
@NotEmpty(message = "请求对象不能为空")
public class CollectionBehaviorDto implements Serializable {

    @ApiModelProperty(value = "文章ID", example = "12345", required = false)
    private Long entryId;

    @ApiModelProperty(value = "操作类型，0 代表收藏，1 代表取消收藏", example = "0", required = false)
    private Short operation;

    @ApiModelProperty(value = "发布时间", example = "2023-10-01T12:00:00Z", required = false)
    private Date publishedTime;

    @ApiModelProperty(value = "类型，0 代表文章，1 代表动态", example = "0", required = false)
    private Short type;
}